package edu.spec.dengyan.week08.class01.book.unit4.topic01;

/**
 * Author       : Dengyan
 * Date         : 2018/10/16 17:19
 * Description  : “Circle”类
 */
public class Circle {
    private double Radius;
    public Circle(){
        double r = 4;
    }
    public Circle(double r){
        this.Radius=r;
    }
    public  double getArea(){
        return 3.14*Radius*Radius;
    }
    public double getPerimeter(){
        return 2*3.14*Radius;
    }
    public void show(){
        System.out.println("圆的半径："+Radius);
        System.out.println("圆的周长："+getArea());
        System.out.println("圆的面积："+getPerimeter());
    }

    /*public double getRadius() {
        return Radius;
    }*/
}
